package com.example.book_shop_java.dao;

import com.example.book_shop_java.bean.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserDao {
    public int userLogin(@Param("username") String username, @Param("password") String password);
    public List<User> getAllUser(@Param("username") String username);
    public int addUser(@Param("username") String username,@Param("password") String password,@Param("userTel") String userTel,@Param("email") String email);
    public int deleteUser(int user_id);
    public int editUser(int user_id,@Param("username") String username,@Param("password") String password,@Param("userTel") String userTel,int state,@Param("role") String role,@Param("email") String email);
    public List<User> getUserState(@Param("username") String username,@Param("password") String password);
}
